import request from '/@/utils/request';
enum Api {
	PageCms_Common = '/api/cms_Column/Page',
	GetCms_Common = '/api/cms_Column/SelectAll',
	AddCms_Common = '/api/cms_Column/AddCms_Column',
	EditCms_Common = '/api/cms_Column/updateCms_Column',
	DelCms_Common = '/api/cms_Column/deleteCms_Column',
	selectCms_ColumnTree = '/api/cms_Column/SelectCms_ColumnTree',
}
/**获取分页 */
export const pageCms_Common = (params?: any) =>
	request({
		url: Api.PageCms_Common,
		method: 'post',
		data: params,
	});
/**获取树结构  */
export const selectColumnTree = (params?: any) =>
	request({
		url: Api.selectCms_ColumnTree,
		method: 'post',
		data: params,
	});
/**查询 */
export const getStepBodys = (params?: any) =>
	request({
		url: Api.GetCms_Common,
		method: 'get',
		params,
	});
// 增加
export const addCms_Column = (params?: any) =>
	request({
		url: Api.AddCms_Common,
		method: 'post',
		data: params,
	});

/**保存 */
export const editCms_Common = (params?: any) =>
	request({
		url: Api.EditCms_Common,
		method: 'post',
		data: params,
	});
/**删除 */
export const deleteCms_Common = (params?: any) =>
	request({
		url: Api.DelCms_Common,
		method: 'post',
		data: params,
	});
